<?php
if(!defined('INDEX')){
	exit('Access Denied');
}

function act_wap_userindex(){
	global $duoduo,$dd_tpl_data;
	$webset = $duoduo->webset;
	$dduser = $duoduo->dduser;
	
	$webtitle=$dd_tpl_data['title'].'-会员中心';

	unset($duoduo);
	unset($webset);
	unset($dduser);
	unset($dd_tpl_data);
	$parameter['from']=$param['url_from'];
	$parameter['webtitle']=$webtitle;
	return $parameter;
}
?>
<?php
if (!defined('INDEX')) {
	exit ('Access Denied');
}
$parameter=act_wap_userindex();
extract($parameter);
include(TPLPATH.'/admin_set/vipduo.tpl.php');
include(TPLPATH.'/inc/header_2.tpl.php');
?>
 <?php if($dduser['id']>0){?> 
<script>
<?php if(TAOTYPE==1 && $dduser['tbnick']==''){?>
var dayAlert=getCookie('dayAlert');
if(dayAlert!=1){
	alert('请先设置淘宝账号或提交订单。以便自动跟单！','<?=wap_l('user','tbnick')?>');
	setCookie('dayAlert',1,1 * 24 * 60 * 60 * 1000);
}
<?php }?>
</script>
 <?php }else{?> 
<?php }?>
<style type="text/css">
.tuichu{background:<?=$dd_tpl_data['color']?>;width:95%; float:left;  padding:15px 0 ; margin-left:5px; margin:5px 0 10px 10px;font-size:16px; text-align:center; color:#fff;border-radius:4px;}
.tuichu a{text-align:center; color:#fff; font-weight:600}
</style>
 <?php if($dduser['id']>0){?>
   <div class="user_top" align="center">
 <img src="<?=a($dduser['id'])?>" width="60" height="60" border="0" class="user_tb"/>
 <div class="name"><font color="#FFFF00"><?=$dduser['name']?></font> , 您好！</div>
 <div class="name0" style="float:right;font-size:10px; line-height:20px;color:#fff; margin-top:20px; margin-right:10px;">我的余额:<span style="display:block;font-size:24px;color:#fff;"> <?=$dduser['money']?> 元</span></div>
 <div class="name"><?=TBMONEY?>: <?=$dduser['jifenbao']?> <?=TBMONEYUNIT?></div>
 <?php }else{?>
   <div class="user_top2" align="center">
 <img src="<?=a($dduser['id'])?>" width="60" height="60" border="0" class="user_tb"/>
<!--  <div align="center" class="u1"><a href="<?=wap_l('user','login')?>">登录</a> / <a href="<?=wap_l('user','register')?>">注册</a></div> -->
 <?php }?>
</div>

<style>
.my_list{ padding:0 5px; margin-top:10px;background:#fff;}
.my_list p{ width:100%;font-size:16px; line-height:32px; border-bottom:solid 1px #e9e9e9;}
.my_list p span{float:right;font-size:12px; line-height:32px;}
.my_list ul{width:100%;}
.ml_nr{width:25%;float: left; padding: 18px 0 18px 0;
    overflow: hidden;
    height: 40px; margin: -1px -1px 0 0;text-align:center;}
.ml_nr img{width:30px; height:30px}
.ml_nr span{display: block;font-size: 12px; margin-top: 8px;}
</style>
<div class="my_list">
	<p>我的订单<a href="<?=wap_l('user','dingdan')?>"><span>查看全部&gt;</span></a></p>
    <ul>
    	<li class="ml_nr" style="border-left:none;"><a href="<?=wap_l('user','order',array('do'=>'taobao'))?>"><img src="<?=TPLURL?>/inc/images/daohang/tbmx.png "><span>淘宝订单</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','order',array('do'=>'mall'))?>"><img src="<?=TPLURL?>/inc/images/daohang/scmx.png "><span>商城订单</span></li>
        <li class="ml_nr" style="border-right:none;"><a href="<?=wap_l('user','mingxi',array('do'=>'in'))?>"><img src="<?=TPLURL?>/inc/images/daohang/mingxi.png "><span>我的明细</span></a></li>
        <div style="clear:both;"></div>
    </ul>
</div>
<div class="my_list">
	<p>我的资产<?php /*?><a href="<?=wap_l('user','dingdan')?>"><span>查看全部&gt;</span></a><?php */?></p>
    <ul>
    	<li class="ml_nr"><a href="<?=wap_l('user','order',array('do'=>'taobao'))?>"><img src="<?=TPLURL?>/inc/images/daohang/fanli.png "><span>我的返利</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','order',array('do'=>'mall'))?>"><img src="<?=TPLURL?>/inc/images/daohang/jfb.png "><span>集分宝</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','mingxi',array('do'=>'in'))?>"><img src="<?=TPLURL?>/inc/images/daohang/jf1.png "><span>天猫积分</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','mingxi',array('do'=>'in'))?>"><img src="<?=TPLURL?>/inc/images/daohang/taojinbi.png "><span>淘金币</span></a></li>
        <div style="clear:both;"></div>
    </ul>
</div>
<div class="my_list">
	<p>实用工具<?php /*?><a href="<?=wap_l('user','dingdan')?>"><span>查看全部&gt;</span></a><?php */?></p>
    <ul>
    	<li class="ml_nr"><a href="<?=wap_l('user','order',array('do'=>'taobao'))?>"><img src="<?=TPLURL?>/inc/images/daohang/taobaotb.png "><span>我的淘宝</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','order',array('do'=>'mall'))?>"><img src="<?=TPLURL?>/inc/images/daohang/jdtb.png "><span>我的京东</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','mingxi',array('do'=>'in'))?>"><img src="<?=TPLURL?>/inc/images/daohang/gwc.png "><span>淘宝购物车</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','order',array('do'=>'taobao'))?>"><img src="<?=TPLURL?>/inc/images/daohang/jfshangcheng.png "><span>积分商城</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','order',array('do'=>'mall'))?>"><img src="<?=TPLURL?>/inc/images/daohang/fenxiang.png "><span>分享赚钱</span></a></li>
        <li class="ml_nr"><a href="<?=wap_l('user','mingxi',array('do'=>'in'))?>"><img src="<?=TPLURL?>/inc/images/daohang/kefu.png "><span>客服中心</span></a></li>
        
        <div style="clear:both;"></div>
    </ul>
</div>






	<?php /*?><div class="vipduo_user clear">
			<div class="vipduo_tu">
    <?php if($dd_tpl_data['sign_open']==1){?><a href="<?=wap_l('user','sign')?>"><img src="<?=TPLURL?>/inc/images/daohang/u-sign.png "><span>我要签到</span></a><?php }?>
				<a href="<?=wap_l('user','invite')?>&rec=<?=$dduser['id']?>"><img src="<?=TPLURL?>/inc/images/daohang/zhuan.png"><span>邀请好友</span></a>
				<a href="<?=wap_l('user','tixian',array('type'=>1))?>"><img src="<?=TPLURL?>/inc/images/daohang/fx.png"><span>申请提现</span></a>
				<a href="<?=wap_l('user','dingdan')?>"><img src="<?=TPLURL?>/inc/images/daohang/qt.png"><span>找回订单</span></a>
<a href="<?=wap_l('user','mingxi',array('do'=>'in'))?>"><img src="<?=TPLURL?>/inc/images/daohang/u-detailed.png"><span>账户明细</span></a>
				<a href="<?=wap_l('user','msg',array('do'=>'list'))?>"><img src="<?=TPLURL?>/inc/images/daohang/u-msg.png"><span>站内短信</span></a>
				<a href="<?=wap_l('user','set')?>"><img src="<?=TPLURL?>/inc/images/daohang/u-authfield.png"><span>完善资料</span></a>
<a href="<?=wap_l('user','pwd')?>"><img src="<?=TPLURL?>/inc/images/daohang/u-invite.png"><span>修改密码</span></a>
				<a href="<?=wap_l('user','tbnick')?>"><img src="<?=TPLURL?>/inc/images/daohang/u-bind.png"><span>绑定账号</span></a>
</div></div><?php */?>
		
         
 <?php if($dduser['id']>0){?> 
           <div class="tuichu"><a  href="<?=u('user','exit',array('from'=>wap_l('user','index')))?>">安全退出</a></div><?php }?>
        

<div class="claer"></div>
<?php include(TPLPATH.'/inc/footer.tpl.php');?>